CREATE TABLE [dbo].[TTRENP_ANIN]
(
[CO_EMPR] [dbo].[TD_VC_002] NOT NULL,
[CO_PROV] [dbo].[TD_VC_020] NOT NULL,
[NU_RENO] [dbo].[TD_VC_008] NOT NULL,
[CO_UNID_CONC] [dbo].[TD_VC_003] NOT NULL,
[FE_RENO] [dbo].[TD_DT_001] NOT NULL,
[NU_PROC] [dbo].[TD_IN_001] NOT NULL CONSTRAINT [DF__TTRENP_AN__NU_PR__68C86C1B] DEFAULT ((0)),
[CO_USUA_CREA] [dbo].[TD_VC_008_USUA] NOT NULL CONSTRAINT [DF__TTRENP_AN__CO_US__69BC9054] DEFAULT (suser_sname()),
[FE_USUA_CREA] [dbo].[TD_DT_001_SIST] NOT NULL CONSTRAINT [DF__TTRENP_AN__FE_US__6AB0B48D] DEFAULT (getdate()),
[CO_USUA_MODI] [dbo].[TD_VC_008_USUA] NOT NULL CONSTRAINT [DF__TTRENP_AN__CO_US__6BA4D8C6] DEFAULT (suser_sname()),
[FE_USUA_MODI] [dbo].[TD_DT_001_SIST] NOT NULL CONSTRAINT [DF__TTRENP_AN__FE_US__6C98FCFF] DEFAULT (getdate())
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[TTRENP_ANIN] ADD CONSTRAINT [PK__TTRENP_A__2C574CD376625E5B] PRIMARY KEY CLUSTERED  ([CO_EMPR], [CO_PROV], [NU_RENO], [CO_UNID_CONC], [FE_RENO], [NU_PROC]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[TTRENP_ANIN] ADD CONSTRAINT [FK__TTRENP_ANIN__686944BF] FOREIGN KEY ([CO_EMPR], [CO_UNID_CONC], [CO_PROV], [NU_RENO], [FE_RENO]) REFERENCES [dbo].[TTRENP_ANUL] ([CO_EMPR], [CO_UNID_CONC], [CO_PROV], [NU_RENO], [FE_RENO])
GO
